#!/bin/sh

case $# in
  0) ARG="-multicast";;
  1) ARG=$1
esac

case "$ARG" in
  -multicast) PARAM="-m 1";;
  -iiop) PARAM=iiop://`hostname`:${ORBNameServicePort=10000};;
  -sciop) PARAM=sciop://`hostname`:${ORBNameServicePort=10000};;
  *)
  @echo Usage : NameService [-iiop | -sciop]  2&>1 ; exit 2

esac

$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service -d -d -d -ORBEndPoint "$PARAM"
